package com.harzone.commons.search.impl.mapper;

import java.sql.SQLException;

import com.harzone.commons.search.domain.Record;
import com.harzone.commons.search.impl.maker.SearchResultMaker;
import com.harzone.commons.search.result.ScanRowMapper;
import com.harzone.commons.search.result.SearchResultSet;


/**
 * 遍历数据映射适配器
 * @author ls
 * 2014年11月26日下午12:23:45
 */
public abstract class ScanRowMapperAdapter implements ScanRowMapper<Record>{

	@Override
	public Record mapRow(SearchResultSet result) throws SQLException {
		return SearchResultMaker.makeRecord(result);
	}
	
	@Override
	public boolean showField(int page){
		return true;
	}
}
